<template>
    <div>
         <van-nav-bar
      title="协议条款"
      left-text="返回"
      left-arrow
      :fixed="true"
      :placeholder="true"
      @click-left="$router.back(-1)"
    >
    </van-nav-bar>
    <div>
        <!-- <embed :src="'http://106.14.244.208/public/images/contract/'+src+'.pdf'" type="application/pdf" width="100%" height="100%" internalinstanceid="81" /> -->
        <!-- <img :src="'http://106.14.244.208/public/images/contract/'+src+'.jpg'"> -->
        <iframe class="pdf" :src="'http://higuang365.com/public/contract/'+src+'.html'" seamless frameborder=0 ></iframe>
    </div>
    </div>
</template>

<script>
import { useRoute } from "vue-router";
export default {
    setup(){
           const route = useRoute();
    const { src } = route.params;
        return {src};
    }
}
</script>
<style scoped>
.pdf{
    width: 100vw;
    height: calc(100vh - 60px);
}
</style>